package com.study.concurrent.C_ThreadSynchronizationHelperClass.d_WaitingForMultipleConcurrentEventsToComplete;

/**
 * Created by 赵超 on 2017/3/25.
 */
public class Main {
    public static void main(String[] args) {
        VideoConference videoconference = new VideoConference(10);
        /**
         * 创建视频会议对象线程并启动
         */
        Thread threadConference = new Thread(videoconference);
        threadConference.start();

        /**
         * 创建与会者线程并启动
         */
        for (int i = 0; i < 10; i++) {
            Participant participant = new Participant(videoconference, "Participant_" + i);
            Thread thread = new Thread(participant);
            thread.start();
        }
    }
}
